/**
 * Copyright (c) 2009 Koder Chen. All Rights Reserved.
 *
 * tst_helper.h
 *
 * The file declares the functions using to help the test of the rsa lib
 *
 *  Author: chenfuhan
 * Created: 2009-6-24
 * Version: 1.0
 */
#include "type.h"
#include "tool.h"

#ifndef __TEST_HELPER_H__
#define __TEST_HELPER_H__

void int2bytes(u32_t a, u8_pt out);
u32_t bytes2int(u8_pt a);
u32_t intbits(u32_t a);
u32_t gcd(u32_t p, u32_t q);
u32_t powm(u32_t a, u32_t p, u32_t n);
i32_t jacobi(i32_t a, i32_t b);
i32_t jacobi_witness(i32_t x, i32_t n);
i32_t randomize_prime_test(i32_t n, i32_t k);
#endif // __TEST_HELPER_H__
